import requests
from bs4 import BeautifulSoup
import json

releases = []
release_html = requests.get("https://cn.wordpress.org/download/releases/").text
soup = BeautifulSoup(release_html, features="lxml")
for tr in soup.find_all("tr"):
    tds = tr.find_all("td")
    releases.append({"version": tds[0].text, "date": tds[1].text, "url": tds[2].find("a").attrs["href"]})
print(json.dumps(releases, ensure_ascii=False))
